<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "package_transfer".
 *
 * @property string $id
 * @property string $package_id 资产包ID
 * @property int $transfer 资产包提供方名称
 * @property string $contact 联系人
 * @property string $phone 电话
 * @property string $email 邮箱
 * @property string $address 地址
 * @property string $position 职位
 * @property int $method 转让方式
 * @property string $wish 转让意愿
 * @property string $detail 转让价格
 * @property string $updated_at
 * @property int $lock_user 上锁用户
 * @property string $lock_timestamp 上锁时间
 * @property string $remark 备注
 * @property string $expected_transfer 预计转让时间
 */
class PackageTransfer extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'package_transfer';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['package_id',], 'required'],
            [['package_id', 'transfer', 'method', 'lock_user'], 'integer'],
            [['wish', 'detail', 'remark'], 'string'],
            [['updated_at'], 'safe'],
            [['contact', 'phone', 'email', 'address', 'position', 'lock_timestamp', 'expected_transfer'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'package_id' => '资产包ID',
            'transfer' => '资产包提供方名称',
            'contact' => '联系人',
            'phone' => '电话',
            'email' => '邮箱',
            'address' => '地址',
            'position' => '职位',
            'method' => '转让方式',
            'wish' => '转让意愿',
            'detail' => '转让价格',
            'updated_at' => 'Updated At',
            'lock_user' => '上锁用户',
            'lock_timestamp' => '上锁时间',
            'remark' => '备注',
            'expected_transfer' => '预计转让时间',
        ];
    }

    /**
     * @inheritdoc
     * @return PackageTransferQuery the active query used by this AR class.
     */
    public static function find()
    {
        return new PackageTransferQuery(get_called_class());
    }
    
}
